package com.tensquare.search.dao;

import com.tensquare.search.pojo.Article;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

public interface SearchDao extends ElasticsearchRepository<Article,String > {


    //根据方法名自动生成查询语句
    public Page<Article> findByTitleOrContentLike(String title,String content, Pageable pageable);
}
